<!DOCTYPE html>
<!--
  ~ Copyright (C) 2018 guomw.Inc. All rights reserved.
  ~ 项目名称： mysite
  ~ 文件名称： merchant_desktop.html
  ~ Date：18-10-11 下午5:16
  ~ Author: guomw
  -->

<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>桌面</title>

    <link href="../resource/css/bootstrap.min.css?v=3.3.5" rel="stylesheet"
          th:href="@{/resource/css/bootstrap.min.css?v=3.3.5}"/>
    <link href="../resource/css/font-awesome.min.css?v=4.4.0" rel="stylesheet"
          th:href="@{/resource/css/font-awesome.min.css?v=4.4.0}"/>
    <!-- Morris -->
    <link href="http://cdn.viptool.cn/lib/morris.js/0.4.3/morris.css" rel="stylesheet">
    <link href="../resource/css/animate.min.css" rel="stylesheet" th:href="@{/resource/css/animate.min.css}"/>


    <link href="../resource/css/style.min.css?v=4.0.0" rel="stylesheet"
          th:href="@{/resource/css/style.min.css?v=4.0.0}"/>
    <link href="../resource/hotui/css/hotui.style.override.css"
          th:href="@{/resource/hotui/css/hotui.style.override.css}" rel="stylesheet"/>
    <style>
        .panel-heading {
            font-size: 16px;
            font-weight: bold;
            width: 100%;
            border-bottom: 1px solid #ccc;
            margin: 0 20px;
        }
    </style>
</head>
<body>
<div class="row">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-content" style="border-top: none;">
                <div class="panel-heading">
                    今日订单数据
                </div>
                <div class="panel-body">
                    <div class="row">
                        <div class="col-sm-3">
                            <div class="widget style1">
                                <div class="row">
                                    <div class="col-xs-4">
                                        <i class="fa fa-trophy fa-5x"></i>
                                    </div>
                                    <div class="col-xs-8 text-right">
                                        <span> 今日收入 </span>
                                        <h2 class="font-bold" th:text="${'￥'+data.totalAmountT}">￥0</h2>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-3">
                            <div class="widget style1 navy-bg">
                                <div class="row">
                                    <div class="col-xs-4">
                                        <i class="fa fa-bar-chart fa-5x"></i>
                                    </div>
                                    <div class="col-xs-8 text-right">
                                        <span> 成交订单总数 </span>
                                        <h2 class="font-bold" th:text="${data.totalNumT}">0</h2>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!--                        <div class="col-sm-3">-->
                        <!--                            <div class="widget style1 navy-bg">-->
                        <!--                                <div class="row">-->
                        <!--                                    <div class="col-xs-4">-->
                        <!--                                        <i class="fa fa-pie-chart fa-5x"></i>-->
                        <!--                                    </div>-->
                        <!--                                    <div class="col-xs-8 text-right">-->
                        <!--                                        <span> 待支付订单数 </span>-->
                        <!--                                        <h2 class="font-bold" th:text="${data.totalNumToPayT}">0</h2>-->
                        <!--                                    </div>-->
                        <!--                                </div>-->
                        <!--                            </div>-->
                        <!--                        </div>-->
                        <!--                        <div class="col-sm-3">-->
                        <!--                            <div class="widget style1 lazur-bg">-->
                        <!--                                <div class="row">-->
                        <!--                                    <div class="col-xs-4">-->
                        <!--                                        <i class="fa fa-cny fa-5x"></i>-->
                        <!--                                    </div>-->
                        <!--                                    <div class="col-xs-8 text-right">-->
                        <!--                                        <span> 待支付金额 </span>-->
                        <!--                                        <h2 class="font-bold"><span th:text="${data.totalAmountToPayT}">0</span></h2>-->
                        <!--                                    </div>-->
                        <!--                                </div>-->
                        <!--                            </div>-->
                        <!--                        </div>-->
                        <div class="col-sm-3">
                            <!--                            onclick="hot.newTab(deliverUri,'销售订单')"-->
                            <div onclick="hot.newTab(deliverUri,'销售订单')" style="cursor: pointer"
                                 class="widget style1 yellow-bg">
                                <div class="row">
                                    <div class="col-xs-4">
                                        <i class="fa fa-bus fa-5x"></i>
                                    </div>
                                    <div class="col-xs-8 text-right">
                                        <span> 待发货 </span>
                                        <h2 class="font-bold" th:text="${data.toDeliverNum}">0</h2>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-3">
                            <!--                            onclick="hot.newTab(afterSaleUri,'售后申请')"-->
                            <div onclick="hot.newTab(afterSaleUri,'售后申请')" style="cursor: pointer"
                                 class="widget style1 red-bg">
                                <div class="row">
                                    <div class="col-xs-4">
                                        <i class="fa fa-paypal fa-5x"></i>
                                    </div>
                                    <div class="col-xs-8 text-right">
                                        <span> 退款中 </span>
                                        <h2 class="font-bold" th:text="${data.afterSaleNum}">0</h2>
                                    </div>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>
            </div>

        </div>

    </div>
</div>
<div class="row">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-content" style="border-top: none;">
                <div class="panel-heading">
                    昨日订单数据
                </div>
                <div class="panel-body">
                    <div class="row">
                        <div class="col-sm-3">
                            <div class="widget style1">
                                <div class="row">
                                    <div class="col-xs-4">
                                        <i class="fa fa-trophy fa-5x"></i>
                                    </div>
                                    <div class="col-xs-8 text-right">
                                        <span> 昨日收入 </span>
                                        <h2 class="font-bold" th:text="${'￥'+data.totalAmountY}">0</h2>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="col-sm-3">
                            <div class="widget style1 navy-bg">
                                <div class="row">
                                    <div class="col-xs-4">
                                        <i class="fa fa-bar-chart fa-5x"></i>
                                    </div>
                                    <div class="col-xs-8 text-right">
                                        <span> 成交订总单数 </span>
                                        <h2 class="font-bold" th:text="${data.totalNumY}">0</h2>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!--                        <div class="col-sm-3">-->
                        <!--                            <div class="widget style1 navy-bg">-->
                        <!--                                <div class="row">-->
                        <!--                                    <div class="col-xs-4">-->
                        <!--                                        <i class="fa fa-pie-chart fa-5x"></i>-->
                        <!--                                    </div>-->
                        <!--                                    <div class="col-xs-8 text-right">-->
                        <!--                                        <span> 待支付订总单数 </span>-->
                        <!--                                        <h2 class="font-bold" th:text="${data.totalNumToPayY}">0</h2>-->
                        <!--                                    </div>-->
                        <!--                                </div>-->
                        <!--                            </div>-->
                        <!--                        </div>-->
                        <!--                        <div class="col-sm-3">-->
                        <!--                            <div class="widget style1 lazur-bg">-->
                        <!--                                <div class="row">-->
                        <!--                                    <div class="col-xs-4">-->
                        <!--                                        <i class="fa fa-cny fa-5x"></i>-->
                        <!--                                    </div>-->
                        <!--                                    <div class="col-xs-8 text-right">-->
                        <!--                                        <span> 待支付总金额 </span>-->
                        <!--                                        <h2 class="font-bold"><span th:text="${data.totalAmountToPayY}">0</span></h2>-->
                        <!--                                    </div>-->
                        <!--                                </div>-->
                        <!--                            </div>-->
                        <!--                        </div>-->

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="../resource/js/jquery.min.js?v=2.1.4" th:src="@{/resource/js/jquery.min.js?v=2.1.4}"></script>
<script src="../resource/js/bootstrap.min.js?v=3.3.5" th:src="@{/resource/js/bootstrap.min.js?v=3.3.5}"></script>
<script src="../resource/hotui/js/hot/bootstrap.hot.extra-utils.js?20190316"
        th:src="@{/resource/hotui/js/hot/bootstrap.hot.extra-utils.js?20190316(123123)}"></script>

<script type="text/javascript" th:inline="javascript">
    const deliverUri = /*[[@{/order/list(deliverStatus=0)}]]*/ "";
    const afterSaleUri = /*[[@{/order/afterSale/list(status=1)}]]*/ "";
</script>
</body>
</html>